package com.gouqi.lpl.controller;

import com.gouqi.lpl.domain.Provinceofchina;
import com.gouqi.lpl.service.ProvinceofchinaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@RestController
@RequestMapping("/provinceofchina")
public class ProvinceofchinaController implements Serializable {

    @Resource
    private ProvinceofchinaService provinceofchinaService;

    @GetMapping("/get")
    public List<Provinceofchina> getProvinceofchina() {
        return provinceofchinaService.getProvinceofchina();
    }

}